Topic awaiting preservation: get flash bg color (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 1393 |
posted 07-14-2006 07:12
I've been searching all night with no avail... how would I grab the background color of a dynamically loaded swf with php? |
Nervous Wreck (II) Inmate From: |
posted 07-14-2006 07:40
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. |
Paranoid (IV) Inmate From: Florida |
posted 07-14-2006 12:01
Maybe you could pass some queries to SWFTools - hopefully something with a name like that keeps track of background color information. |
Paranoid (IV) Inmate From: 1393 |
posted 07-14-2006 21:54
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? |
Nervous Wreck (II) Inmate From: |
posted 07-15-2006 04:17
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. |
Paranoid (IV) Inmate From: 1393 |
posted 07-15-2006 04:48
Great idea DC... I'll see what I can do |