View Full Version : on mouse click, map should zoom in or zoom out according to button pushed!!!!!!!!
markfuno
02-25-2005, 12:28 AM
on mouse click, map should zoom in or zoom out according to button pushed!!!!!!!! :confused:
all i need is the code to do this. i am new at using flash. is this hard to do?
look at this url to get a better idea of what i need to do!!!!
map zoom in/zoom out (http://www.oakton.edu/students/~mfunovit8115/comtechie/map.html)
thanks in advance for any code help!!! :confused:
also do i need the buttons to be pushed movie clips or just a graphic??? :confused:
mark .
Gibberish
02-25-2005, 10:03 PM
Many many threads on this. Try a search.
here is one of the top ones. Post # 10 should help you.
http://www.actionscript.org/forums/showthread.php3?t=53497&highlight=map+zoom
markfuno
02-28-2005, 11:12 PM
the only thing i need to do is swap the images. for example, if you click the "zoom in" button, you will see the map image get closer to the target. if you click "zoom out" it will reverse back to the map image before it.
i dont need it zooming like a camera. just switch the map images.
isnt there an easy way to code this????
thanks,
mark .
Gibberish
02-28-2005, 11:18 PM
create a blank holder movieclip for your images. 'myBtn' would be the instance name of your button.
imgHolder.loadMovie("images/image1.jpg");
myBtn.onPress = function(){
imgHolder.loadMovie("images/image2.jpg");
}
markfuno
03-05-2005, 09:16 PM
i did what i could by simply using the on event handler. but i didnt use your code b/c i didnt know how to load them or create them. but this is what i did. this actually made me ask another question.
practice website (http://www.oakton.edu/students/~mfunovit8115/newtry/Untitled.html)
the header and footer and two white lines of the site are actually a separate movie file called main.swf. they are loaded on startup. but if you click on the "about us" link you will be brought to the map zoom part of the website minus the main.swf file loading. this my problem. i need that main.swf file loading or appearing on all pages(or in other words everytime you click on a menu item)!!! you can call main.swf movie my template or filler i guess.
could someone tell me how to load this movie so that it loads on all link clicks and not just at the startup???? :confused:
do you understand my problem??? :confused:
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.