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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zoom/Pan buttons from JavaScript

Status
Not open for further replies.

jhowe

Programmer
May 19, 2000
28
US
I am totally new to Flash but good with JavaScript. I am interested in making a drawing viewer by exporting static CAD drawing files to .swf format and then using JavaScript buttons to let users zoom all, zoom window, and pan l/r/u/d when zoomed in.

Is there a way to set modes in flash where you can zoom or pan? Is this possible using JavaScript?

Any wisdom will be much appreciated.
 
this would be very easy to do in flash without the need for ANY javascript. If you wanted to do it in Java I guess this is the wrong place to ask.

Having used this method before for CAD and Flash, the only way to get a CAD drawing into Flash is by exporting from ACAD as a WMF for import into Flash.

The rest is just Actionscripting.

I'll get back to you with a CAD drawing in Fla with all functions enabled.

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
Dave,

I want to take DXF files, and batch convert them from DXF to SWF via Adobe Illustrator. This process works really well, but you end up with just a static SWF file. Therefore, if I can add the interaction via a few JavaScript commands triggered by HTML buttons, then I don't have to add functionality to each individual SWF file.

Joel
joel.howe@frameworkmedia.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top