Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with Zoom In/Out on map created in Flash 1

Status
Not open for further replies.

dzr

Programmer
Nov 20, 2001
109
US
Hi, I'm really new at Flash (programmer by trade) and I was wondering if anyone know of a good tutorial that would show me how to create a map w/ zoom in/out ability.
 
goto flashkit.com and check out there tutorials section..i know i have seen a zooming mask script there somewhere..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Thanks so much both of you - they both are great examples. i'm also wrestling CAD files which will eventually be the map in Flash. I think this may take me longer than I expected!

If you need any help writing any PHP code - I'll be glad to oblige!

danielle ::)
 
then dan see my post in the other thread about php..help is appreciated..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
I've got a really simple flash zoom/drag thing (the swf is only 1K) that you're welcome to tear apart. It could do with some refining (for instance you can drag right to the edge of the "map" which looks ugly) but the code should be really easy to convert.

Just drag the slider at the top for zooming and click and drag on the image in the window to pan.

 
wangbar - that's really nice. i don't know how i can download it though. forgive any ignorance - i am 99% flash ignorant.
 
Vert, Sorry - can't be much help with your php question. I'm not familiar enough w/Flash.



Curiousity question:
What I'm trying to do is create a 'zoomable' map in Flash. The files are CAD files that I'm making into wmf files. I then want to make the room numbers variables of some sort so that if someone enters #144 then it will bring them to the map where room #144 will be highlighted (probably change the font color/size) then they can click on the room # to get information about that room. This is going to be using a combination of php and mysql.

The question is: Am I a total idiot for trying this with such little flash experience?
 
Downloading is easy, just click on...


and choose "save to file" and you should have your copy.

As to your "total idiot" question ;-)

Flash will import .wmf files easily enough - but it won't do it on the fly so everything will have to be in there at design time. You could convert each room to a separate movie and load them in at runtime - then each movie could be contained in its own clip and manipulated from there.

Or if the files aren't too detailed it would also be feasible to have the whole map in memory as a movieclip, or multiple clips, from the start and then the only code you'd need would be similar to the example above - just a few lines. The details on individual rooms could be stored externally in your DB and loaded in if the user requests them via PHP.

It's ambitious for a first Flash project but since you've got previous programming experience it shouldn't be impossible by any means and I'm sure if you hit a problem someone here will be happy to help.
 
i tried to do a "save as" but when i try to open it i get a "failed to open document" message.

sorry to be a pain - i do appreciate your help.
 
I'll send it to you (it's a tiny file) - what's your email?
 
danielle@fcs.uga.edu is my email...

thanks so much. i'm sure i'll have more questions but i'll give everyone a break for a bit. x-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top