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.
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!
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.
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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.