all groups > flash (macromedia) > september 2004 >
You're in the

flash (macromedia)

group:

passing variables to flash movies from out side


passing variables to flash movies from out side hasanali00
9/19/2004 9:15:13 PM
flash (macromedia):
Hi
without any data integration, is it possible to pass data to a flash movie
from another application.

For instance, a user enters some data in a html form and I display this data
in a flash movie.

Any tutorial available?
Re: passing variables to flash movies from out side Daniel Portilla Heras
9/27/2004 5:14:05 PM
Hello Hasanali.

For your question, I tell you: Yes you can. If you put any querystring like
a querystring of a dinamic page in the flash source, you can use these
variables like variables defined in flash.

Example:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="484"
height="375 align="middle">
<param name="allowScriptAccess" value="always" />
<-- To IE --> <param name="movie"
value="mapaspain.swf?IDC=15&IDP=28&IDB=9&IDL=3&IDD=42&IDE=0" />
<param name="quality" value="high" />
<-- To NS--> <embed
src="mapaspain.swf?IDC=15&IDP=28&IDB=9&IDL=3&IDD=42&IDE=0"
quality="high" width="484" height="375" align="middle"
allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Like you can see in line 3 or 5 (IExplorer o NetScape) you can pass the
variables IDC,IDP,IDB,IDL,IDD,IDE to Flash and then in Flash you can access
to them like other variables defined in the root of the movie.

AddThis Social Bookmark Button