ActionScript 2.0 :: How To Create Zoom In And Back Button
Apr 16, 2009Any tutorials out there on how to make a zoom in button and a zoom out button?
View 1 RepliesAny tutorials out there on how to make a zoom in button and a zoom out button?
View 1 RepliesI would like to create a back button within a Flash movie that remembers the last Scene the user came from. I have about 12 scenes in my Flash movie.
I am using Flash MX 2004.
I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:
//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............
I know this cant be too difficult, but please entertain me I want to create a button on my web page for zoom in and out (the whole web page).
In IE you can achieve this by doing the following - "Press and hold the contol button and then press the - (minus) button (Ctrl -)." or click on the view option at the top of the browser>>zoom>>zoom out.
how i could create a function to do the following. I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.
View 3 Repliesbasically this code will work like a browser back button its very simple but "could end up very long" basically it will act "similiar to the browser back button"
Code:
on (release) {
if(page1 = _currentframe){
_root.gotoAndStop("quiz");
} else if (page0 = _currentframe){
[code]....
it works when the (page1 = _currentframe){ is rotated with the first if statement...because for somereason it seems to not recognise the "else if's"
I have a Flash website with 3 interfaces( 3 frames with movie clips inside). they have a button that goes to different loaded .html page(text). But once the back button is pushed on the web browser, it always goes back to the first frame instead of the actual last page, which might have been frame 2 or 3.
View 1 RepliesI've created next/back buttons to navigate to various frame labels on the timeline. There is a "main menu" frame that contains menu buttons to take the user to other frame labels on the timeline. However this "main menu" frame has an FLV playing and needs to be "stopped" when navigating to another frame label. I have the code for this.
What I am inquiring about is this:Do I need to create an "if statement" in the next/back button code telling Flash that if the user clicks on the next/back button while on the "main menu" frame, to stop the FLV also?
i want to know how we can make back button in flash to go back to page same like browser back button.
View 1 RepliesI have been searching high and low trying to create the zoom and pan effect used in this website [URL]
View 3 RepliesI've created a world map in flash and I want to code an ActionScript so that if I click on a country the map, it should zoom into it and show some information beside the country.
I dont know how to start it. A sample could be better.
Please let me know if you know any good step by step turial site.
Find the pic here for reference : ASIA
I have added the ASIA part which i have created. When i click on India, it should zoom into it.
I have to create an image zoom and pan. The problem is that I have to set some boundaries for my pan to stop when the image is finished. Here is my source code.
[URL]
I am trying to improve the quality of the slideshow displayed on this website[url]... My knowledge of flash is pretty limited. I know how to create the slideshow, I'm just not sure how to maximize the quality and keep the file small. The original was created as a .wmv and then converted to .flv. I have heard that creating the slideshow in flash using vector images is the way to get the best quality. So, my questions are:
1. How do I convert a jpeg to a vector image? Can I do this in photoshop?
2. How do I convert the .swf file to .flv without losing quality?
Is there any way to create a zoom in to a location like Google Earth for a site?
I think, I can do this with a slide show in Flash or jQuery, but I would like to know if there is a better alternative way!
how to create zoom and pan controls in Flash -- I'd like to create controls with functionality similar to that you see in Google Maps, GigaPan.org, etc. Does anyone have suggestions for where I might find a tutorial or instructions for how to create these controls using ActionScript? I browsed some threads in this forum on zoom and pan controls, but I'm not seeing anything that really explains how to write the code.
View 2 RepliesI have an image in flash, actually, I want to put zoom in and zoom out controls over that big image on click events.
View 2 RepliesI'm developing a web app using Flex. This app allows to draw forms in a Canvas (like MSPaint in Windows).Now, I want a new feature on it: an infinite canvas. The user should be able to drag the main Canvas and this should be infinite in X and Y axis. Consecuently, this Canvas should be resized in real time.
Obviously, I don't want to create a Canvas of 1k x 1k pixels with zoom in an specific area to give the feeling of an infinite drawing area.
EDIT:I just read that Flash/Flex Flash/Air supports canvases up to 4056x4056 px, not infinite.
I have to create an animation involving a big fast zoom with a little rotation and animating it on the timeline just doesn't cut it.I start with state 1 (see attached file state11.jpg) where there is an animation and then I want a fast smooth zoom until I reach State 2 (see attached file state2.jpg). In the first state the "map" occupies the entire screen, but when it reaches state 2 the map is inside a mask and the other elements will start appearing.how to create this zoom smoothly with actionscript? I am really lost here and I know somethings about actionscript but I just cannot do this and my timing is today...
Attachments:
state2.jpg
(149.0 K)
state11.jpg
(121.2 K)
I'm trying to add a back button once I click a main menu button then remove the back button once it is pressed. I get the title error.
[Code]...
I made an animation and I would like to zoom in and out on a section of the screen with a button. Or a make a magnifying glass effect in a certen area. Is there a way I can do this with code or do I have to re-animate that part bigger?
View 1 RepliesFlash map with a number of flash created vector buttons sitting over it. I wish to keep the button size from changing during a users zooming in/out on the map we have, i.e button remains 5mm wide whatever the zoom. Is the solution to this in coding and what code do I use ?
View 5 RepliesI want to do a simple thing in Flash CS3, but some how I am unable to do it. Actually my requirement was....OnRollOver of a Button I want to slightly zoom it and OnRollOut. I want to slightly zoom out the Button. And the conditions are I should not use TimeLines/Stage Assets etc. Every thing has to come dynamically. Including the Button creation/ZoomOut/ZoomIn effect etc. and mainly I need it in Flash Cs3/Flash Cs4.
View 3 Repliesi've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:
on (rollOver){
_root.Mypic._width += 5;
_root.Mypic._height += 5;
}
wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.
I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point
View 1 RepliesI have this code for my effect to zoom in and zoom out in certains buttons
canada.addEventListener(MouseEvent.MOUSE_OVER, canadaover);
function canadaover(event:MouseEvent):void
{[code]....
the problem is when u reach certain corner of the button it kinda gets into a loop, any ideas how can i fix this?
I have a movie clip(a large image that has the same size as the stage) and a button in a square that is small (150x150) . The zoom has to be like this: I click on the button once and I have to zoom in (only once) exactly where the square is (in the center of it). When I click the zoom button again I have to zoom out and every thing has to be like like the beginning. This is the code I have:
[Code]...
This is my current code and i would like to include a next and back function [code]...
View 3 RepliesHow to create a back button, like you see in all the flash games instruction pages. I am using Flash Professional 8
View 7 RepliesI've been working creating an interactive display map for a client. I've figured out the controls I'd like to use for moving the map, but I'm having trouble with the zooming features. What I'd like to do is have the user click on the "+" button to zoom in and the "-" button to zoom out. The problem is the map is not centered when the user clicks either button?
View 3 RepliesI wanted to create a rain movieclip with the actionscript below, but i wanted the rain to appear at the back of a layer. How do i change the script?
//Creating an empty movieclip to attach the clip from library
_root.spring_mc.rain_mc.createEmptyMovieClip("hold er",this.getNextHighestDepth(0));
//settig variables
[code]......