ActionScript 2.0 :: Magnifying Glass, With BitmapData?
May 12, 2006
i was wondering if anyone have an idea on how to make a magnifying glass that would work with AS instead of 2 versions of the same bitmap one scaled down and the other in normal size..i think there should be a way to achive this effect using BitmapData in flash 8
View 5 Replies
Similar Posts:
Dec 29, 2010
Looking for some code to make magnifying glass over 1 image (can not be 2 images one, small one large) that can be moved to specific locations off of an event like clip load, or clip end.I can find this online for as3 but not as2.so for example...when image is displayed it should load magnifying glass in certain area, then as new clip starts or some type of event happens (not a click event) it should be able to move the glass to new coordinates.we are placing this in a system that CAN NOT use as3. must be as2.
View 0 Replies
Apr 21, 2011
I wrote a magnifying glass application from a tutorial, but it only effects movieclips:
ActionScript Code:
import flash.filters.DisplacementMapFilter;
import flash.geom.Point;
[code].....
View 9 Replies
Aug 18, 2009
creating a traditional magnifying glass effect - as you drag the magnifying glass the image gets bigger through the glass.
i'm trying to do something different. i would like a fuzzy image as the background and then the magnifying glass would make the image clear.
View 1 Replies
Oct 21, 2010
I have a cube with a material on the front face. I'm trying to create a magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for how to achieve this? I was thinking I might try to find the UV under the mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap from the material, mask it, and move it around in relation to the mouse position- mimicking a magnifying effect. How to do that, I have no clue.
View 2 Replies
May 12, 2005
In my flash page I made, in the right side, a horizontal infinite menu with a magnifying glass that has the same effect. This clip is made separately and is loaded into the page by an empty movie clip. All works well when is not in the page, but when it is loaded the lens is not moving. I figured out this problem putting this AS into the empty movie clip:
onClipEvent (mouseDown) {
startDrag("lens");
} onClipEvent (mouseUp) {
stopDrag();
}
But another problem appeared. Wherever I use the mouse, the lens are acting as if I am manipulating it. The lens are moving according to the position of the mouse. What can I do?
View 1 Replies
Oct 17, 2009
someone have a code for creating magnifying glass effect on a picture in a UiLOADER commponent ?
View 1 Replies
Jun 16, 2010
I've trying to find a solution for a fullscreen bug. Here is a picture showing the "reel" in normal mode:[URL] When I press the magnifying glass the middle picture should go fullscreen. But this is what happens: [URL] As you can see, a part of the left pic is showing as well. Depending on what resolution im on the pictures are shown differently but never with correct fullscreen for the middle picture. I'm attaching some of the code here where I'm guessing the problem might be.
[Code]...
View 2 Replies
Mar 28, 2010
I'm wanting to create a magnifying glass effect in my Flash website but the error 1120: Access of undefined property completeLoad is a problem for me - I can't see where the issue is though as i've delt with completeLoad just as I have progressLoad and that doesn't get the error - My code is:
[Code]....
View 3 Replies
Aug 11, 2010
I have built a catalog in flash that was orginally built in InDesign and exported but it has some small content that is hard to read for the elderly users viewing it and I would like to add a zoom feature or some type of magnifying glass.
View 1 Replies
Nov 15, 2009
I have placed an image within a movieclip that I would like to zoom in on when the mouse passes over it. The zoom on the cursor is working, but the mouse remains a magnifying glass even after it rolls off of the zoomable image. I have tried putting the image and zoom code inside an swf and loading in it into a container via loadmovie, but the same problem with the cursor occurs.
[Code]...
View 16 Replies
Feb 24, 2004
I want to create a magnifying lens effect for two movievlips placed adjacent to each other. Each movieclip contains only one image and the movieclips are created dynamically. The magnifying lens examples present in the web are only for single movieclips....
View 2 Replies
Feb 6, 2003
making a Magnifying menu i have text menu and i have this idea that when user scrolls on top on the button it will enlarge a little and at the same time it will enlarge other menu buttons. I don't know how to explain it but it should look something like MAC X menu.something like that
View 1 Replies
Feb 24, 2004
I want to create a magnifying lens effect for two movievlips placed adjacent to each other. Each movieclip contains only one image and the movieclips are created dyanamically.
The magnifying lens examples present in the web are only for single movieclips..
View 2 Replies
Nov 29, 2010
www dot arcteryx dot com (sorry unable post the link){once u are on the site goto mens(top left) >> jackets (left menu) >> click on any jacket}i figured out the magnifying part by masking but the issues that i have are :1. Snap the position of magnifying glass part to the position of cursor.2. make the cursor invisible3. start drag on Rollover (i think i got this)4. stop the magnification as the user rolls out out the specific area (the jacket in this case)
View 1 Replies
Mar 6, 2011
i make the app by using flash cs5 when the ipa export, the icon is auto added the glass effect by flash cs5(like many apps in appstore),but i don't want to add the glass effect on the icon.how to export the icon without the glass effect?
View 1 Replies
Jun 27, 2005
how do i re-create this or if u would point me into a GREAT detailed tutorial..
[URL]
should i make the glass buttons in flash also? i want my buttons to ease like that..
View 6 Replies
Jan 31, 2007
I'm using Flash 8, with this code in the first frame:
import flash.display.BitmapData;
rissa._x=Stage.width/2;
rissa._y=Stage.height/2;[code].....
When I publish the file, I'm getting the following error message in the Output panel:
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 7: The class or interface 'BitmapData.loadBitmap' could not be loaded.
var plaid:BitmapData.loadBitmap("plaid");
Total ActionScript Errors: 1 Reported Errors: 1
View 8 Replies
Oct 14, 2009
I am trying to use the reflect class from "http://pixelfumes.blogspot.com/2007/03/reflection-class-v3-with-source .html" but I keep getting this error:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at Reflect()
at Site_fla::GalleryPage_29/loadThumbs()
at Site_fla::GalleryPage_29/sortXML()
[Code]...
btw, first I used assigned thumbContainer as the mc argument (outside the loadThumbs() function) and it worked but not exactly what I wanted... because I thought it is supposed to update when the movieclip is animated but it actually didn't... when I use a scroller, only the thumbs that are first loaded to the stage get the reflection..
View 10 Replies
Dec 29, 2011
I've been using BitmapData.copyPixels() to draw graphics onto a canvas (Bitmap).I need to rotate the resulting graphics without the use of draw() because it's vastly slower.How can I rotate the target graphic? I'm assuming that there might be a formula or library that I can use which will first reorganize the pixels that make up a graphic based on an origin (point) and radians.I'm pretty certain that I'm not capable of creating such logic, so if there are any known libraries that do this, that would be awesome.I'd like to achieve something similar to XNA's SpriteBatch.Draw() method, which accepts rotation as its 5th argument.
View 3 Replies
Jan 21, 2010
I'm trying to create a magnify glass tool.I am familiar with copypixels() function for Bitmaps so i've had no problem making a magnify glass on a regular bitmap image, the problem is i want to magnify a movieclip full of other movieclips, layers, videos, active links etc....is there an efficient way to do this? i really dont want to load the whole thing into another movieclip just bigger....?
The idea is that the user can scan over the content and read, view, watch in a slightly bigger view.I have a zoom function when the user goes to full screen mode but this isn't an option in this case.
View 2 Replies
Oct 15, 2010
if anyone can do a flash Hourglass, but it got to be a neverending Hourglass like the sand just keeps on going down but never finishes ,I will be checking my messages. 3D Hourglass peffered
View 3 Replies
Sep 1, 2011
how to use the bitmapData collision method. Now I'm trying to figure out if there is a way to see at what angle or coordinate of the bitmapData the collision happens? I need it in order to figure the accurate bounce angle after the collision occurs.
View 2 Replies
Jul 15, 2009
I'm currently working on a flash game and I need to know how to addChild a BitmapData or draw a BitmapData to screen. If I can't than how can I give a DisplayObject my BitmapData?
View 2 Replies
Apr 2, 2005
I am making a game that involves a function that makes a bottle randomly explode in all directions. The function is on the main frame of my game and is linked to several movie clips inside the bottle. When the conditions are right, the movie clips should call the function and then fly out in random directions. The problem is, when i put the code directly onto the movie clips it works fine, but when i attempt to use it as a function is makes the entire movie move in random directions instead of the glass shard. My only guess as to why this happens is because this '_this.' command somehow applies to my main frame because that is where the function originates.
View 4 Replies
Dec 22, 2011
I've made a mobile version of my software, with low-res images and such, and I can now fully buffer all my content (including a 360 frame animation which is buffered to memory). Problem is, that everytime I update the view, more memory is used.When I write image = new BitmapData();, does it store the previously created BitmapData's in memory? Do I have to flush the memory somehow before I draw my second picture in BitmapData?Example:
ActionScript Code:
// In this example I draw using the same bitmapData several times, also
//overwriting the first image. Do I have to somehow delete the data first, to
[code].....
View 1 Replies
May 11, 2009
I am using a magnifying glass effect in flash, but because my content and rollover buttons sit "inside" the magnifying glass, so they appear magnified, the rollovers dont work when you mouse over them because technically you aren't mousing over them, if that makes sense.
View 13 Replies
Jan 9, 2012
I am having an issue with using BitmapData.draw(stage). I am getting the following error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:
var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.
View 4 Replies
Aug 19, 2011
I'd like to tween milk in a glass floating over to a container and slowly tipping and pouring the milk in. Is it possible to do this correctly using tweening? If not, is it possible with masking?
View 2 Replies
Dec 29, 2009
The title might be a little misleading. Look at my code and I will explain
public static function loadTile(tileDir:String = "empty"):void
{
if(tileDir != "empty")
{
tPoint = new Point(0,0);
tRect = new Rectangle(0,0,30,30);
[Code]...
I am trying to do tiling with sprites. I want my tiles to be interactive, so that is why I am using the sprite object instead of using regular bitMaps to represent my tiles. You might be wondering why I wouldnt just use graphics.beginBitmapFill(tImage); and graphics.drawRect(0, 0,tWidth ,tHeight ); to pick out the tiles I want to use. Well reason being is because it turns out that drawRect() first and second parameters actually alter the location of where the actual sprite sits at.
So if I set the x and y properties of the sprite to x = 20, and y = 20. then I set my drawRect(20,20). it actually adds an extra 20 pixels to my x and y coords of my sprite. And I know the reason why, I just need to know a better way.
View 2 Replies