[F8] Magnification W/ AS
Hey, looking to create a zoom function for a rifle in my game, I've made one using masks in a previous project, but...my clip has two parts, a HUD on the bottom filling ~100px, then the top section is completely drawn using a ghetto "3D" engine. Now, since the user has movement control (AWDS), the angles are always changing, so using masks doesn't make any sense. I am across a scope made by BlinkOK, but he also uses masks, but has exactly what i'm looking for.
So the boiled down version is: how to make a zooming scope with out masks.
Thanks in advance, - Peter.
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-15-2006, 06:34 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Magnification
I'm not quite sure how to use a movieclip that will magnify another MC in the main sceen as the MC passes under the MagnificationMC.
Thanks
Magnification
HI, I would like to create a kind of scrolling menu with images to be like the dock bar on Mac OS X. Its the menu bar which is located at the bottom of the screen, what happens is there is a row of images and as you roll your mouse over them they zoom out in an arc. (the ones next to the image you are on zooms out as well but not as much.)
Does anyone know how I might go about doing this, or if there is any components I could get which would do this....
Thanks For any help
Michelle
Magnification
Hey! Brand-new to forums, relatively new to actionscripting.
I've seen this effect around, and I'm wondering what exactly would be the procedure for pulling something like this off...
It's just kinda the concept of something acting as a sort of a magnifying glass-- whatever it goes over is magnified within a certain area, say of a movie clip.
If you could help me with this, that would be great.
Thanks!
Magnification
<< Hi,
I am looking for any info on how to magnify jpg's. I have several photos that are going to be used on my site that I would like to drag a box or something over the jpg's and they would magnify. I would also like them to be buttons so that I could spawn a browser window with the enlarged photo.
I have reviewed a pretty bad tutorial on flashkit. Didn't really help much. Any help would be appreciated.
Here is the logic of what I am thinking.
2 MC's 1 the normal pic and the other is the magnifying glass.
use setMask to mask the jpg.
then on press of the jpg scale the jpg say 200%.
Am I even on the right track? Is this even possible?
Thanks,
Derek >>
any idea about this, except masking.
Magnification
Last edited by muratcengi : 2003-01-03 at 02:41.
forget about it
Magnification Effect
can anyone tell me how to make an animation effect like on the os x dock? thanx
Magnification Effect?
I have a few flash editors i fool with, Can anyone give me some hints how to build this effect? and what editor would be the best to use?
MAGNIFICATION EFFECT
Thanks everyone
DarkMutha
- Scaling/magnification? -
I am usin MX2004 and want to make a section of a website where:
There are four large graphics/buttons accross the page, and when you roll over them they scale up, but the one next which ever one you are over gets slightly bigger as well if any one knows what I mean. Kind of like what happens when you roll over your OSX dock (unless of course you have disabled magnification)
Any advice??
Cheers
Magnification Question
I was looking at the tutorial on making a magnifying glass: http://www.flashkit.com/tutorials/Sp...-144/index.php
Instead of having the movement be controlled by the cursor, i basically just want to animate the magnified part myself, and have multiple ones at once. How would I do this? In the tutorial, the large picture showing through the mask in the right way is dependant on it moving with the cursor. How can I just get it to follow the circle shape movie clip? Thanks!
Magnification Effect
I want to create a magnification effect that can move on a motion guide across an image magnifying all areas it covers. I'm sure it can be done. Just not sure how.
thanks for any help anyone can offer.
Measuring Magnification
How to Measure magnification
How can I see how strong a magnifying glass is?
I bought this magnifying glass http://www.liangdianup.com/inventory/189901.htm and I want
to know how to test it to see how strong it is. I hear a lot of people talk about
magnifying and how strong the magnification is, but I would like to know the true
magnification of my magnifying glass. I have a few of them and some seem stronger then
others. How can I rate these? How can I pin a correct number on mine? How do the companies
that make these come up with these numbers.
Measuring Magnification
How to Measure magnification
How can I see how strong a magnifying glass is?
I bought this magnifying glass http://www.liangdianup.com/inventory/189901.htm and I want
to know how to test it to see how strong it is. I hear a lot of people talk about
magnifying and how strong the magnification is, but I would like to know the true
magnification of my magnifying glass. I have a few of them and some seem stronger then
others. How can I rate these? How can I pin a correct number on mine? How do the companies
that make these come up with these numbers.
Magnification In Flash CS4
How would one go about creating a picture album that resembles the magnification/genie effect (like the tool bar in OSX)?
Magnification Control
Is there a way to program into actionscript a command to "view all"... something like a fscommand.
Here is a situation: I right click on a spot on my window and click 'zoom in'... it zooms in. I press a button within the zone that I zoomed to and now the window is no longer zoomed in. Is this possible?
What I want to do is skip the step of rightclick>"view all"
Edited: 02/12/2008 at 12:45:56 PM by jtspears3450
Magnification With Falloff
I am trying to make an array of thumbnails that is magnified as you rollover them. I've got it to array, but it only magnifies in the x or y direction. I think, if I can get this chunk of code to include mousex, it would work:
Code:
for(i=0;i<_root.numthumbs;i++){
if(_root["holder"+i]._y > mousey){
_root["holder"+i].scalefc = mousey / _root["holder"+i]._y;
}else{
_root["holder"+i].scalefc = (_root.stageHeight-mousey) / (_root.stageHeight-_root["holder"+i]._y);
}
Please, please help!
Magnification Effect
I've a big picture and a small one.
I use the lens as mask on the big picture, in order to have a magnification effect.
The big picture is very big, so I want to move it in order to zoom in the correct point.
Could you help me with the code ?
ActionScript Code:
this.addEventListener(Event.ENTER_FRAME, updatePos);
//original big picture info
var originalX=originalBigImage.x;
var originalY=originalBigImage.y;
var originalW=originalBigImage.width;
var originalH=originalBigImage.height;
function updatePos(e:Event):void {
//move the lens
myLens.x=mouseX;
myLens.y=mouseY;
//move big picture THIS IS WRONG
myBigImage.x= myLittleImage.x / (originalW/2); //-originalW/2;
myBigImage.y= myLittleImage.y / (originalH/2);/// originalH/2;// +mouseY; //mouseY-originalH/2
Mouse.hide();
}
Smartclip To Change Magnification Of An Image
howdy!
Here is the problem I have:::
1.I need the user to be able to click and hold the mouse and draw a square over a background image.
2. When the user releases the mouse the section of the background image that is highlighted with the square should zoom on that area.
3. When the user presses a key(preferrably spacebar) everything should return back to the normal view (100%).
---this last part is pretty easy, I understand it.
I am pretty new to advanced actionscripting (if this isn't advanced that should tell you how new I am to it!)
Thanks for any advice, tutorials, examples, etc. I can email the code that I have started if needed.
HELP...magnification Script...WEBSITE ON HOLD
PLEASE PLEASE PLEASE direct me to someone that can help us fix this!! Town's website project frozen until this is resolved... We'd be happy with simply a contact to work with....ANYTHING!!!!!!
Created working code that provides a magnified view (LFmap) of where-ever the mouse is clicked/draged on an adjacent smaller overview map (LFmapsmall). Problem..presently any mouse action off the overview map remains tracking resulting in a blank magnified view.
We need to be able to "freeze" the magnified view and then click on buttons on the same. The button will provide info & links to that buttons location on the map.
Here's the existing code residing in the 1st frame...
function moveBig(){
var percentX=(_root._xmouse-s.xMin )/ s.width;
var percentY=(_root._ymouse-s.yMin )/ s.height;
LFmap._x=b.xMin+ (percentX*b.width);
LFmap._y=b.yMin+ (percentY*b.height);
}
b=new Object ();
b.xMin=792.9;
b.xMax=-438.4;
b.yMin=1004.9;
b.yMax=-722.5;
b.width= b.xMax-b.xMin;
b.height= b.yMax-b.yMin;
s=LFmapsmall.getBounds(_root);
s.width=s.xMax-s.xMin;
s.height=s.yMax-s.yMin;
_root.onMouseDown=function(){
clicking=true;
moveBig();}
_root.onMouseUp=function(){clicking=false;}
_root.onMouseMove=function(){
if(clicking){
moveBig();
updateAfterEvent()
}
}
Collision Drag/magnification Viewer
Hi,
I'm trying to create something very, very similar to this:
http://www.glasgowmuseums.com/maps/GMFlash.htm
I'm familiar with the code that it takes to make the small collision detected box that gets dragged around inside the smaller view box.
I am not at all familiar with what code it would take to make the larger (masked) area move in accordance with the small collision dragger.
Can anybody help me out with this code and theory?
Thanks in advance
~j
Lens Magnification, Question About The Code
I've a big picture and a small one.
I use the lens as mask on the big picture, in order to have a magnification effect.
The big picture is very big, so I want to move it in order to zoom in the correct point.
Could you help me with the code ?
ActionScript Code:
this.addEventListener(Event.ENTER_FRAME, updatePos);
//original big picture info
var originalX=originalBigImage.x;
var originalY=originalBigImage.y;
var originalW=originalBigImage.width;
var originalH=originalBigImage.height;
function updatePos(e:Event):void {
//move the lens
myLens.x=mouseX;
myLens.y=mouseY;
//move big picture THIS IS WRONG
myBigImage.x= myLittleImage.x / (originalW/2); //-originalW/2;
myBigImage.y= myLittleImage.y / (originalH/2);/// originalH/2;// +mouseY; //mouseY-originalH/2
Mouse.hide();
}
thanks
|