This content has been marked as final. Show 3 replies
> I want to create a multimedia product/portfolio CD that has a search function
> (there's no database, I just need it to search based on keywords/ word
> occurrences in the pages within the presentation).
If by "pages" you are referring to #text members, you can walk all the
text members in your movie searching for a given character/word/phrase,
-- #movie handler
on mGetMatchingTextMembers input
lMembers = 
if stringP(input) = 0 then return lMembers
nLibs = _movie.castLib.count
repeat with l = 1 to nLibs
nMems = _movie.castLib[l].member.count
repeat with m = 1 to nMems
if member(m, l).type = #text then
tText = member(m, l).text
if offset(input, tText) then lMembers.append( member(m, l) )
> I also want a page that list a certain folder content within the CD. The
> folder would contain PDF files that would be updated from time to time, and I
> want the listing be able to list new files as I add more PDFs into the folder.
> The item in the list would be clickable, and would automatically try to open
> user's PDF viewer to view the files.
The simplest solution would perhaps be to use an xtra, like Buddy API,
that will give you a list of file types in a given folder:
tList = baFileList("@/PDFs/", "*.pdf")
Thank you, that really helped.
I stumbled into another problem, however. I need to put scaled text inside the stage (100% width, 75% height). Is there a way to do this without converting it to bitmap? I need the text to still be treated as text so it can be searched.
> I need to put scaled text inside the
> stage (100% width, 75% height). Is there a way to do this without converting it
> to bitmap? I need the text to still be treated as text so it can be searched.
Can you not set the text member to scroll?