# Calling a Flash File from JSP page

**URL:** <https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199>\
**Category:** programming\
**Created:** [January 19, 2001, 10:29am UTC](https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199 "2001-01-19T10:29:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 19, 2001, 10:29am UTC](https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199/1 "2001-01-19T10:29:24Z")

</div>

I am calling a JSP page from a Flash File and passing 4 parameters to it. Again I am calling another Flash File from that JSP page. And passing those parameters to new Flash file. But I have to use JavaScript for setting the variables of the New Flash File.

```
        Is there any other way to set the variables of the Flash File without using JavaScript.

```

If yes then how i can do that?

Plz help me.

waiting for reply from Flash Gurus.

```
                                     Nikhil.
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 19, 2001, 10:56pm UTC](https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199/2 "2001-01-19T22:56:48Z")

</div>

Hello,  
Javascript is the best way to send variables to the Flash file and vice-versa. You may try a more complicated method of sending the information through HTTP headers. Like ASP files use similar syntaxes like:

[http://www.kirupa.com/test.asp?file=intro.swf](http://www.kirupa.com/test.asp?file=intro.swf)

The above URL was just an example. You can do it similarly in JSP as well, but it takes a lot more time using HTTP. Javascript is supported in Flash by using the FSCommand.

I hope that helped. If you have any questions or comments, please don’t hesitate to reply back.

Regards,  
Kirupa Chinnathambi  
[kirupa@kirupa.com](mailto:kirupa@kirupa.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2001, 12:02pm UTC](https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199/3 "2001-01-20T12:02:37Z")

</div>

ok. I got that JavaScript is the best possible way of passing the variables to a Flash 4 file.  
But I want to know how u can pass the variable sto a Flash 4 File in differebt ways. I want to know all the possible ways of passing variables from JSP page to Flash 4 file.

waiting for help.  
thanks.

```
                                 Nikhil.
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2001, 12:58pm UTC](https://forum.kirupa.com/t/calling-a-flash-file-from-jsp-page/3199/4 "2001-01-20T12:58:36Z")

</div>

Hello Again,  
Use Post under the GetURL option. Enter the variables that you may use in the variables area. You may also use Get to receive date like that as well.

Regards,  
Kirupa Chinnathambi  
[kirupa@kirupa.com](mailto:kirupa@kirupa.com)
