Yeah, that worked.
The embed code the user can copy from my page now directs to a server
script "widget.swf" with some parameters. With a htaccess rewrite rule
the call is redirected to a php script which stores the HTTP_REFERER
and returns the "real" swf. In my first testings this worked fine. And
now i can even track how often a swf file is requested.
Thank you Juan ;-)
Cheers
Pedder
Am 12.08.2010 um 20:04 schrieb Juan Pablo Califano:
Maybe you could try a different approach.
Although it's not 100% authoritative, the http referrer of the http
request
made to get your swf could help here. This is data sent by the
client (the
browser in this case), and might not even be sent to the server, but
in
almost every case, it is.
So, you can check your server's log and filter out requests for your
swf. In
Apache, at least, the referrer will be logged by default.
A little twist to the former could be serving your swf from a server
side
script. If you are using php, this is quite easy. Instead of giving
your
users a link to your swf, tell them to link to
yourserver.com/your_widget.php. This php file will read and store the
referrer and then just return the swf (a simple redirect to your swf
will do
it).
Cheers
Juan Pablo Califano
2010/8/12 Pedder <b_gro...@gmx.de>
Shit, you're right!
I realized that i was testing with the debug flash player. I forgot
that.
And now all i got is an error number and no error message again.
Do you have any idea to get the url where my widget was embeded?
Am 12.08.2010 um 17:57 schrieb Henrik Andersson:
Pedder wrote:
var search:RegExp = /.+cannot\saccess\s(.+)\./i ;
That will not work for localized error messages in the localized
versions
of the player.
I also have my doubts about it working in non debug players, I
think the
error message is the empty string in those. But I am not sure
about that.
There is also the point of the message simply changing in the
English
version at some point.
You really shouldn't try to parse stuff that is meant for display.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders