PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Requests

Reply
 
Thread Tools
Old 03-04-2004, 10:49 PM   #1
JÿGius³
Green Mole
 
Join Date: Oct 2003
Posts: 17
indexing flash movies with swf2html

Hi all.

I'm wondering if could be possible to index swf files.
There is a software that can be used to extract
text from swf files http://www.macromedia.com/software/f...ngine_faq.html
The problem is that with a pdf file, for instance, you have a link
as follows
<a href="pdf.pdf">click here!</a>.
When you search, phpdig returns you a link to pdf.pdf.
With a flash the problem is a little bit different, because
a flash file is like a "page" inside a host page.
For instance, I have a page and a flash inside it called moog.swf.
Here the page called index.html.

PHP Code:
<body>
    <
object id="c432115683" classid="clsid:" 
                
codebase="http://macromedia.com" width=140 height=120>
        <
param name=movie value="moog.swf"
        <
param name=quality value=high><param name="wmode" value="transparent"
        <
embed name=c432115683 swliveconnect="true" 
            
src="moog.swf" quality=high width=140 height=120 
            type
="application/x-shockwave-flash" 
            
pluginspage="http://www.macromedia.com">
        </
embed>
    </
object>

<
a href="pippo.html">ciao</a>
</
body
swf2html extracts the text from moog.swf; when I search for a word
contained in moog.swf, phpdig has to give me a link to index.html,
and not the link to moog.swf. That is, a flash movie is like
a "page slave" (moog.swf) inside the host page (index.html).

swf2html is ready to be used to index very complex flash files.
I've tested swf2html with a 1.8 MB flash movie, and works fine...
It has indexed the file very very quickly.

Any ideas ?

Best regards.

JÿGius³
JÿGius³ is offline   Reply With Quote
Old 03-11-2004, 02:44 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. The first thing would probably be to edit one or both of the regex in this post to allow for the embed tag, maybe something like so depending on placement:
PHP Code:
<embed[^>]*src[[:blank:]]*=| 
and then the next thing would probably be to account for the content type, external binary, etcetera by following the idea in this thread.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing Flash movies Edomondo Mod Requests 0 12-09-2004 06:09 AM


All times are GMT -8. The time now is 02:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.