Using one Flash File in multiple nodes

crikos - April 29, 2008 - 12:57
Project:Flash Node
Version:5.x-5.5
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I would like to use the same Flash Application in different nodes. The Control for the Flash application is done through Flashvars. Now I have to maintain for each node different files. For example to embed "myflash.swf" in different nodes, I have to upload for each node an own swf File, named "myflash.swf_0","myflash.swf_1","myflash.swf_2", etc...

How can I manage this - maybe it is not a new feature Request.

Thanks and regards.

#1

Stuart Greenfield - April 30, 2008 - 20:42
Status:active» fixed

The best way to do this is via a flash node macro. Macros were specifically written to let you re-use flash content on other pages, particularly with "player" type movies in mind. You can pass flash vars via the macro format, so you can have a "master" flash node with a generic player in it, and then call it up on other pages and use flash vars to refer to a video, audio or sub-movie.

Setting to fixed as I think macros will answer this query, but change back and post again if not.

#2

Anonymous (not verified) - May 14, 2008 - 20:54
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#3

dougzilla - November 4, 2008 - 22:19
Version:5.x-5.4» 5.x-5.5
Status:closed» active

I have a similar issue. I cannot use the flash node macro because I need to use php to in my flashvars code. The flashnode filter precludes using php.

What I would like to do is to create many flashnodes using the same .swf file. I wish to place each of these flashnodes in a gmap view (adding locative data) to each.

#4

Stuart Greenfield - November 5, 2008 - 07:17

If you want to refer to a flash node via PHP the best way is to call the flashnode_content($args) function. $args is an array where each key is a parameter as you'd use in the flash node filter. As a minimum you would write something like

print flashnode_content(array('nid' => 10));

To pass some flashvars you'd write something like

print flashnode_content(array('nid' => 10, 'flashvars' => 'var1=someValue'));

The comments in flashnode.module describe the available keys.

#5

dougzilla - November 6, 2008 - 23:06

Thanks, I will give it a whirl. It is a beautiful module.

 
 

Drupal is a registered trademark of Dries Buytaert.