Loading gwt-voices swf from a CDN

27 views
Skip to first unread message

Simen Sandvaer

unread,
Aug 6, 2012, 5:36:44 AM8/6/12
to gwt-v...@googlegroups.com
Hi,

I am trying to load in the gwt-voices.swf file from a CDN, as I do not want to load it from our own production servers, but this seems to create some issues. One thing I notice is that after it loads in the swf, nothing more happens, no attempts to load in the sound files or any other logging (I uncommented out the logging from the Voices.as class). My guess is that it has something to do with loading in swf files from another domain and security constraints around that. Do you have any tips / ideas on how this can be solved?

Thanks!

/Simen

Fred Sauer

unread,
Aug 6, 2012, 12:12:48 PM8/6/12
to gwt-v...@googlegroups.com
You may need a Flash crossdomain.xml


/Simen

--
You received this message because you are subscribed to the Google Groups "gwt-voices" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-voices/-/v_5a_noeq2kJ.
To post to this group, send email to gwt-v...@googlegroups.com.
To unsubscribe from this group, send email to gwt-voices+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-voices?hl=en.



--
Fred Sauer
fr...@allen-sauer.com

Simen Sandvaer

unread,
Aug 7, 2012, 10:39:50 AM8/7/12
to gwt-v...@googlegroups.com, fr...@allen-sauer.com
That was already in place. I have now, after some painstaking trial and error, managed to get it to work. First issue seems to be that the swf can not do any calls to the html page, as it is loaded from an external url. This I fixed by adding a param that sets AllowScriptAccess to always in FlashMovieImplStandard. Next issue that arose was then that the html page could not make any calls to the swf file, which was fixed by adding a Security.allowDomain("*") to Voices.as file. I am totally clueless on the security implications of such wildcard security settings on the swf, so one possible other fix is sending in the allowed domains as a parameter to the gwt-voices.swf, which in turn FlashMovieImplStandard f.ex needs to get from another exposed call.

It is possibly a lot of work, for pretty little gain, and I am not sure if I will continue loading in the swf via a cdn (even though it works now), but my stubborn brain wouldn't allow me to drop it until I figured it out :)

/Simen
Reply all
Reply to author
Forward
0 new messages