Magnifying Lens
- AcDiK-DR4G0N
-
AcDiK-DR4G0N
- Member since: Jan. 31, 2006
- Offline.
-
- Forum Stats
- Member
- Level 19
- Blank Slate
I'm curious to see how I could make a Magnifying Lens in Flash. Would anyone know what I would need to do it, and what basic formula should be used?
But don't link me to tutorials or anything, I want to figure it out on my own, but I'm not quite sure what I would need.
- KaynSlamdyke
-
KaynSlamdyke
- Member since: Jun. 25, 2004
- Offline.
-
- Forum Stats
- Member
- Level 16
- Melancholy
At 5/18/07 07:58 PM, AcDiK-DR4G0N wrote: But don't link me to tutorials or anything, I want to figure it out on my own, but I'm not quite sure what I would need.
Basic Masking will come in handy, as will your basic dress up sim tutorial for dragging movie clips with the mouse. And thats about it, other than the addition of some simple math.
...
- scr4ppy
-
scr4ppy
- Member since: Jun. 19, 2003
- Offline.
-
- Forum Stats
- Member
- Level 13
- Blank Slate
Just make two different MovieClips of what you want magnified. One normal MC and one that is for example twice is big. Put both MCs in a different. Now make a circle MC and put it in the layer above the the layer that contains the magnified MC. Now make the layer with the circle mask the layer with the bigger MC (right click on the layer >>> mask).
You can also put some AS in the circle so that it follow the mouse:
onClipEvent (enterFrame){
this._x=_root._xmouse;
this._y=_root._ymouse;
}
Hope this helps...
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
I don't think he want to use a mask for it. Because it's a drag to have to duplciate and enlarge it to the way size you'd like it and everything. Also it'll make file size larger. I think he wants a full actionscript approach on it.
- ThatsMrLazy
-
ThatsMrLazy
- Member since: Jan. 1, 2007
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
This looks simple:
- ZuluCS
-
ZuluCS
- Member since: Mar. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 12
- Blank Slate
Here's one a made with a rounded effect :
- AcDiK-DR4G0N
-
AcDiK-DR4G0N
- Member since: Jan. 31, 2006
- Offline.
-
- Forum Stats
- Member
- Level 19
- Blank Slate
I was looking to do this in API as practice.
From what I've gathered from the past posts, I need to use masks?
Would there be an AS alternative?
And please stop linking tutorials.
- ThorClodofBlunders
-
ThorClodofBlunders
- Member since: Feb. 14, 2007
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
Someone from flashkit helped me code a sniper scope once (okay, he did all the work actually. But that was like 7 years ago, before I knew anything), and one of the properties I remember seeing in there was zoomscale. I can't remember if it was a function he created or if it's an actual flash property, but he DID use a mask.
I don't have the file anymore either (I might have it on a CD at home, but I'm not gonna be there for another week or so).
Anyways, a quick google search on zoomscale turned this up:
http://www.actionscript.org/forums/showthread .php3?t=30501

