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

It's pretty simple. On the

Garrett Albright - Thu, 2009-07-23 15:18

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

Rob Loach's picture
Rob Loach - Wed, 2009-08-19 21:27

Services is another option with AMFPHP.