Topic: get flash bg color Pages that link to <a href="https://ozoneasylum.com/backlink?for=28205" title="Pages that link to Topic: get flash bg color" rel="nofollow" >Topic: get flash bg color\

 
Author Thread
redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 07-14-2006 07:12 Edit Quote

I've been searching all night with no avail... how would I grab the background color of a dynamically loaded swf with php?

divinechaos
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

IP logged posted posted 07-14-2006 07:40 Edit Quote

If you're making a request and getting an object/embed back, you could probably parse (preg_match) for the background color param if it's passed into the SWF. Otherwise, I think you would have to store it as metadata with the file or in a database, and call it at the same time. I can't think of any libraries for interpreting SWF if that's what you're hoping for.

Cheers,
DC

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 07-14-2006 12:01 Edit Quote

Maybe you could pass some queries to SWFTools - hopefully something with a name like that keeps track of background color information.

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 07-14-2006 21:54 Edit Quote

Hmm.... I found this little diddy but it appears I'll need PEAR. I've heard of PEAR before but never really looked into it. Do you guys recommend it?

divinechaos
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

IP logged posted posted 07-15-2006 04:17 Edit Quote

I would suggest taking the SWF utility class, browsing the PEAR source, taking the code you want/need and essentially writing your own class which doesn't rely on the PEAR library. I find library dependancies for single files really unnecessary, though the PEAR library itself is usually actually quite good, if somewhat dated.

Cheers,
DC

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 07-15-2006 04:48 Edit Quote

Great idea DC... I'll see what I can do



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu