Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DIRECTOR: HomeDirector ForumTagMotion Graphics

Re: Buddy API - open file with...

Cow Forums : Adobe Director
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Buddy API - open file with...
by William McGrath on Aug 18, 2008 at 11:28:48 am

I myself would go for doing everything within the Director player if possible. That way you have a lot more control.

It shouldn't be too hard to, for instance, generate a list of images and then use the buttons to do a simple getAt operation that will open and visualize the next or previous pic.

I would just use the importFileInto(whateverFile&path). However, you should have one single cast member into which you import the different files, so as to not overload your memory. What I do is have a member called, say "images" in a cast called say "bitmaps" and then I go:

member("images", "bitmaps").importFileInto(whateverFile&path)

However, since it renames the member and I need to keep referring to it, I rename it again with something like this:
member("whateverFile", "bitmaps")="images" --back to the original name


To generate a list of images, I would use something like this, perhaps in a prepareMovie handler (this is from an actual CD in which I worked with over a thousand refeences):

on makeList
gImages = [ ]
myPath = "@/images/" --suposing they're in that folder
repeat with i = 1 to 2000 --some way-too-large number
n = getNthFileNameInFolder(myPath, i)
if n = EMPTY then exit repeat
gImages.append(n)
end repeat

return gImages

end makeList


---
william


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:


Related Threads:
Opening File via BuddyApi



Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]