Adobe Dreamweaver Forums



Last 10 THreads :         static sound (Last Post : kglad - Replies : 15 - Views : 16 )           »          Detect multiple areas of transparency in an image? (Last Post : Rothrock - Replies : 8 - Views : 9 )           »          Add a full screen button to a video. (Last Post : kglad - Replies : 5 - Views : 9 )           »          Problems when uploading my website (Last Post : speculumcm - Replies : 4 - Views : 5 )           »          Dreamweaver CS3 Download (Last Post : DWFAQ.info - Replies : 5 - Views : 6 )           »          Pop up window using AS3 (Last Post : azilen - Replies : 0 - Views : 1 )           »          flash movie plays prematurely (Last Post : lyshamo - Replies : 5 - Views : 6 )           »          Variable for Loader Content (Last Post : kglad - Replies : 5 - Views : 6 )           »          Sick flash (Last Post : edmond_dantes - Replies : 0 - Views : 1 )           »          Flash 10 hangs Internet Explorer 7 on Vista? (Last Post : Aigurs - Replies : 94 - Views : 2261 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Lingo
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 04:14 PM
Applied CD
 
Posts: n/a
Diggs:
Default Re: export image in D11

If I catch a break during the day I?ll try to post a real script but if you
want to get started you need a variable for the sourcePath and another for the
destinationPath. The sourcePath would be relative to the movie and append the
image folder and filename. For example, if you named your cast members with the
same names as the source files:

On mouseUp me
sourcePath = _movie.path & ?images\? & sprite(me.spriteNum).member.name

There are much better ways to store the filename reference using properties
but the above is short and easy to explain. For the destination path, use Buddy
API:

destinationPath = baGetFolder(?c:\?,?Copy image?,1,?Select folder?,-2,0)

then you can copy:

if destinationPath <> ?? then
resultCode = baCopyFile(sourcePath, destinationPath,?IfNewer?)
end if

Read up on the Buddy API file methods, there?s lots of things you can do to
make this better, for example, use baSysFolder to default the save dialog to My
Docs instead of the root level of C:\, also you should handle any copy errors
that get returned in resultCode (any number other than 0), you can use
baCopyFileProgress to display a copy progress bar etc..



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 06:40 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk