Drupal variable into Flash
Hi
I am new to Drupal/Javascript and would like to read the parameter (language selector: $language) into a flash that run on another site (server) within the same domain.
Anyone that can help me ?
Groups:
Login to post comments
Ical feed
It's pretty simple. On the
It's pretty simple.
On the Drupal side, have your module use drupal_add_js() with $type = "setting" to add the variables you need to the Drupal.settings JavaScript object. Also create a JavaScript function that will return the values you need from the object.
Then, inside your Flash app, use the ExternalInterface API to call the JavaScript function and get the values you need.
Easy peasy.
Services
Services is another option with AMFPHP.